<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <a href="#" onclick="popUp('http://baidu.com')">Example</a>
</body>
<script>
    function popUp(url) {
        window.open(url, 'popup', "width=320,height=480");
    }
</script>
</html>
